#include <stdio.h>
#include <unistd.h>
#include <signal.h>
#include <sys/types.h>
#include <string.h>
#include <stdlib.h>


void sig_handler(int sig_no)
{

  if(sig_no == SIGINT)

  puts("received SIGINT signal ");

  if(sig_no == SIGQUIT)

  puts("received SIGQUIT signal ");	  


}

int main()
{

  signal(SIGINT, sig_handler);	

  signal(SIGQUIT, sig_handler);	

while(1)
{

  sleep(2);
  
  printf("pid:%d\n",getpid());  

  puts("runtime>>>>\n");

}

//sleep(2);

//puts("raise sigkill");

//raise(SIGKILL);

return 0;	
}

